<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Common\Controller;
use Think\Controller;

/**
 * base基类控制器
 */
class BaseController extends Controller{
    /**
     * 初始化方法
     */
    public function _initialize(){
        
    }
    
    /**
    * +--------------------------------------------------------------------------
    * 生成验证码
    *
    * +--------------------------------------------------------------------------
    */
    public function verify(){

            $Verify = new \Think\Verify();
            $Verify->entry();
    }


    /**
    * +--------------------------------------------------------------------------
    * 检查验证码
    *
    * @param string $code 输入的验证码
    * @return boolean
    * +--------------------------------------------------------------------------
    */
    protected function check_verify($code){

            $verify = new \Think\Verify();
            return $verify->check($code);
    }
}

